package com.ruoyi.pack.domain;

import java.math.BigDecimal;
import javax.validation.constraints.NotNull;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 仓库电子围栏表 pack_warehouse_fence
 * 
 * @author ruoyi
 */
public class PackWarehouseFence extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 围栏ID */
    private Long fenceId;

    /** 仓库ID */
    @Excel(name = "仓库ID")
    private Long warehouseId;

    /** 点序号 */
    @Excel(name = "点序号")
    private Integer pointOrder;

    /** 纬度 */
    @Excel(name = "纬度")
    private BigDecimal latitude;

    /** 经度 */
    @Excel(name = "经度")
    private BigDecimal longitude;

    /** 围栏类型（1-多边形围栏 2-圆形围栏） */
    @Excel(name = "围栏类型", readConverterExp = "1=多边形围栏,2=圆形围栏")
    private String fenceType;



    public Long getFenceId()
    {
        return fenceId;
    }

    public void setFenceId(Long fenceId)
    {
        this.fenceId = fenceId;
    }

    @NotNull(message = "仓库ID不能为空")
    public Long getWarehouseId()
    {
        return warehouseId;
    }

    public void setWarehouseId(Long warehouseId)
    {
        this.warehouseId = warehouseId;
    }

    @NotNull(message = "点序号不能为空")
    public Integer getPointOrder()
    {
        return pointOrder;
    }

    public void setPointOrder(Integer pointOrder)
    {
        this.pointOrder = pointOrder;
    }

    @NotNull(message = "纬度不能为空")
    public BigDecimal getLatitude()
    {
        return latitude;
    }

    public void setLatitude(BigDecimal latitude)
    {
        this.latitude = latitude;
    }

    @NotNull(message = "经度不能为空")
    public BigDecimal getLongitude()
    {
        return longitude;
    }

    public void setLongitude(BigDecimal longitude)
    {
        this.longitude = longitude;
    }

    public String getFenceType()
    {
        return fenceType;
    }

    public void setFenceType(String fenceType)
    {
        this.fenceType = fenceType;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("fenceId", getFenceId())
            .append("warehouseId", getWarehouseId())
            .append("pointOrder", getPointOrder())
            .append("latitude", getLatitude())
            .append("longitude", getLongitude())
            .append("fenceType", getFenceType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
} 